** This Stata do file is for replication data for the World Politics article entitled
** "The Political Geography of Legal Integration," by R. Daniel Kelemen and Tommaso Pavone.
** Version Date: May 2018
**
**
** To reproduce Table 2: A negative binomial regression of yearly references (at the NUTS3 level)
** on the number of ranked Eurofirms and logged population (at the NUTS3 level), with country and 
** year fixed effects.
use "Italy_France_Germany_Merged_Nuts3Data_Eurofirms&population_Table2.dta"

** Running the negative binomial regression
nbreg Prelim_Refs Num_Rankedfirms lnPopulation i.Country_Num i.Year



** For Figure 6 and Appendix A: A One-sided independent samples F-test for equality of variances
** around the mean NUTS3 reference rates for France and Germany

use "Italy_France_Germany_Merged_NUTS3Data_Figure6_AppendixA.dta"'
** To compute the mean inter-regional difference for France
sum refs_as_percofmean if Country_Num==1

** To compute the mean inter-regional difference for Germany
sum refs_as_percofmean if Country_Num==3

** Performing the F-test:
sdtesti 96 100 226.1698 325 100 440.2535



** For Figure 5 and Appendix B: A One-sided independent samples t-test (with unequal variances)
** For difference in mean percentage change in territorial coverage of the reference
** procedure for France and Germany

use "Italy_France_Germany_Merged_Buffer_Area_Change_Figure5_AppendixB.dta"
** Summary statistics for France, to obtain mean & sd
sum absvchange if Country_Num==1 
** Summary statistics for Germany, to obtain mean & sd
sum absvchange if Country_Num==3

**t-test
ttesti 9 76.2155 154.2594 9 20.40508 18.81952, unequal
